@import '@common/styles/index.scss';

.additionalWrapper {
  background-color: $white;
  padding: $padding-4n;
  overflow-x: hidden;
  padding-bottom: calc(16px + constant(safe-area-inset-bottom));
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.additionalContainer {
  .additionInfoLoading {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    :global {
      .dzq-spin {
        color: $text-color-secondary;
      }
    }
  }
  .title {
    display: flex;
    justify-content: space-between;
    margin-top: $margin-2n;
    height: 28px;
    line-height: 28px;
    margin-bottom: $margin-2n;
  }
  .titleValue {
    flex: 1;
    font-size: $font-size-large;
    color: $text-color-primary;
    font-weight: $font-weight-regular;
  }
  .additionItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: $font-size-primary;
    padding: $padding-4n 0;
    border-bottom: $border-solid-1;
    .additionLabel {
      color: $text-color-regular;
      height: 20px;
      line-height: 20px;
      flex-shrink: 0;
      margin-right: 46px;
      max-width: rem(108);
      @include text-ellipsis();
    }
    .additionValue {
      color: $text-color-primary;
      min-height: 20px;
      line-height: 20px;
      .additionFile {
        margin-left: $margin-1n;
      }
    }
    .additionNormalText {
      color: $text-color-secondary;
    }
    .checkboxValue {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
    }
    .singleText {
      @include text-ellipsis();
    }
    .mutipleLineText {
      word-break: break-all;
    }
  }
  .additionIdentityCard {
    flex-direction: column;

    .additionLabel {
      align-self: flex-start;
      max-width: 108px;
      @include text-ellipsis();
    }

    .cardItem {
      display: flex;
      justify-content: space-between;
      flex-direction: column;
      margin-top: $margin-4n;
      width: 100%;
    }

    .identityCard {
      width: 100%;
      border-radius: 5px;
      background: #eee;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      .iCardText {
        position: absolute;
        z-index: 1;
        color: $text-color-regular;
      }
    }

    .identityImg {
      width: 100%;
      // height: 215px;
      border-radius: 5px;
    }

    .identityCardBottom {
      margin-bottom: rem($margin-10);
    }
  }
  .additionTips {
    margin-top: 14px;
    color: $text-color-secondary;
    font-size: $font-size-small;
    .note {
      color: $error-color;
    }
  }
}
